from pydantic import BaseModel
from fastapi import UploadFile

# user request model
class LoginModel(BaseModel):
    mobile: str
    code: str

class UpdateUsernameModel(BaseModel):
    username: str


class UpdatePasswordModel(BaseModel):
    password: str


class GetUserByIdModel(BaseModel):
    id: int

class UpdateAvatarModel(BaseModel):
    avatar: UploadFile

# address request model
class CreateAddressModel(BaseModel):
    realname: str
    mobile: str
    detail: str
    region: str

class UpdateAddressModel(CreateAddressModel):
    id: str


class DeleteAddressModel(BaseModel):
    id: str